﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="UnitFundProfitability.ManagementCompanies"
	x:Name="Window"
	Title="Management Companies"
	Width="640" Height="480">

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="5*"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>
		<DataGrid Grid.Row="0" Name="ExistingCompanies" AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding}">
			<DataGrid.Columns>
				<DataGridTextColumn Width="*" Header="Company name" Binding="{Binding CompanyName}"/>
			</DataGrid.Columns>
		</DataGrid>
		<Grid Grid.Row="1">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*"/>
				<ColumnDefinition Width="*"/>
			</Grid.ColumnDefinitions>
			<StackPanel Grid.Column="0">
				<TextBlock Text="Company name" Margin="10,0"/>
				<TextBox Name="CompanyName" Margin="10,0"/>
			</StackPanel>
			<Button Grid.Column="1" Content="Add company" Name="AddCompany" Margin="10"/>
		</Grid>
	</Grid>
</Window>